local function g2d_target(t)
  target(t)
    set_targetdir("../bin")
    add_includedirs("../game2d")
    add_packages("SDL2", "SDL2_image", "SDL2_ttf", "SDL2_mixer")
    add_deps("game2d")
    add_links("game2d")
    set_kind("binary")
    add_files(t .. "/**.cc")
  target_end()
end

g2d_target("empty")
g2d_target("ctrl")
g2d_target("builder")